package org.demo.warehouse.controller;


import com.baomidou.mybatisplus.core.conditions.AbstractWrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import org.demo.warehouse.common.pojo.User;
import org.demo.warehouse.common.utils.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author zgc
 * @since 2021-12-16
 */
@RestController
@RequestMapping("/user")
public class UserController extends AbstractController<User> {
    @GetMapping("/checkItem")
    public R queryCheckItem() {
        return R.ok(service.lambdaQuery().select(User::getId, User::getName).list());
    }
}

